<template>
  <div class="nothing">
    <div class="nothing-main">
     <img src="../../assets/404-page.png" alt="">
    </div>
    <div class="nothing-tip">
      <p>很抱歉，您要访问得网页不存在或已被删除</p>
      <p>
        <span class="time">{{time}}</span>&nbsp;&nbsp;秒后返回首页</p>
    </div>
  </div>
</template>
<script>
export default {
  title: '商务合作',
  data () {
    return {
      time: '5',
      timeStart: false
    }
  },
  created () {
    this.timer()
  },
  methods: {
    timer () {
      this.time = 5
      this.timeStart = true
      let timer = setInterval(() => {
        this.time--
      }, 1000)
      setTimeout(() => {
        this.timeStart = false
        this.$router.push('/liveIndex')
        window.clearInterval(timer)
      }, 5000)
    }
  }
}
</script>
<style lang="scss">
.nothing {
  height: 100%;
  // background-color: $white;
  &-main {
    padding-top: 54px;
    width: 570px;
    margin: 0 auto;
    img {
      width: 570px;
      margin: 0 auto;
      display: inline-block;
    }
  }
  &-tip {
    margin-top: 22px;
    p {
      text-align: center;
      font-size: 28px;
      color: #666;
      padding-top: 10px;
    }
    .time {
      color: $red;
      text-decoration: underline;
    }
  }
}
</style>
